body {
  margin: 0;
}

*{
  box-sizing: border-box ;
}

.calculator{
  display: grid;
  width: calc(24rem + 5px);
  grid-template-columns: repeat(4, 6rem);
  grid-template-rows: minmax(6rem, auto)repeat(5, 4rem);
  gap: 1px;
  background-color: lightgray;
  margin: 0 auto;
  border: 2px solid black;
}

.output{
  align-items: flex-end;
  flex-direction: column;
  display: flex;
  grid-column: span 4;
  justify-content: space-around;
  padding: 10px;
  word-wrap: break-word;
  word-break: break-all;
 
}

.last-output{

}

.current-output{
  font-size: 3rem;
}

.span-2{
  grid-column: span 2;
}

.calculator>button:hover{
  background-color: grey;
}

.calculator>button{
  background-color:white;
}